package com.lirh.queue.rabbitmqcustom.service;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * demo 1
 */
//@Component
//@RabbitListener(queues = "notify.payment")
public class PaymentNotifyReceive {
//    @RabbitHandler
    public  void receive(String msg){
        System.out.println("custom receive:" +msg);
    }
}
